package com.xiaomi.eco.scheduler;

import com.xiaomi.cloud.plan.client.plan.PlanExecutor;
import com.xiaomi.cloud.plan.client.spring.annotation.PlanTask;
import com.xiaomi.eco.service.TaskValidateService;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

@Slf4j
@PlanTask(name = "getEcoValidate", quartzCron = "0 0 4 ? * *", description = "每天固定时间（拉取接口耗时定时任务后执行）验证 任务为已完成状态的任务") //每天凌晨四点更新
public class EcoValidateTask implements PlanExecutor {

    @Resource
    private TaskValidateService taskValidateService;


    @Override
    public void execute() {
        //执行定时任务的具体代码
        taskValidateService.checkInterfaceRequirements();
    }
}
